package com.ccb.sc.common.modules.order.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author gs.li
 * @version 1.0
 * @date 2020/11/16 17:43
 */
@Data
public class OrderReturnCreateVo implements Serializable {

    @ApiModelProperty(value = "订单ID", required = true)
    @NotNull
    private String orderId;

    @ApiModelProperty(value = "订单项id", required = true)
    @NotNull
    private Long orderItemId;

    @ApiModelProperty(value = "售后类型（1退货退款 2仅退款 3换货）", required = true)
    @NotNull
    private int returnType;

    @ApiModelProperty(value = "退货数量", required = true)
    @NotNull
    @Min(value = 1, message = "退货数量不能小于1")
    private int quantity;

    @ApiModelProperty(value = "退货原因", required = true)
    @NotNull
    private String reason;

    @ApiModelProperty("补充描述")
    private String memo;

    @ApiModelProperty("凭证")
    private String userCredentials;

}
